<template>
  <div class="home">
    <div style="width: 100px; height: 100px; border: 3px solid green">
      <h1>{{ msg }}</h1>
    </div>
  </div>
</template>

<script>
import myheader from "@/components/header.vue";
import myfooter from "@/components/footer.vue";

export default {
  name: "homePage",
  data() {
    return {
      msg: "这是百科",
    };
  },
  components: {
    "my-header": myheader,
    "my-footer": myfooter,
  },
};
</script>
<style lang="less">
.home {
  h1 {
    color: red;
  }
}
</style>